/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package testessembancodedados;

import fabrica.FabricaComCache;
import service.PessoaService;

/**
 *
 * @author heliokann
 */
public class TesteSingleton {

    public static void main(String[] args) throws Throwable {
        
        PessoaService p = new PessoaService();        
        System.out.println("CLASSE 00000000000000000000000000000000="+p);
        
        p = FabricaComCache.getObj(PessoaService.class);
        System.out.println("CLASSE 00000000000000000000000000000000="+p);
        
        p = PessoaService.class.newInstance();
        System.out.println("CLASSE 00000000000000000000000000000000="+p);
        
        p = new PessoaService();
        System.out.println("CLASSE 00000000000000000000000000000000="+p);
        
    }

}
